package yijy.threeCountry.threadtest;


import yijy.testclone.User;

/**
 * Created by yijy on 2017/9/20.
 */
public class SayTest3 implements Runnable {

    public volatile User user;
    public volatile boolean keep = false;

    public SayTest3(User user) {
        this.user = user;
    }

    @Override
    public void run() {
        try {
            Thread.sleep(1000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        user.setUsername("sdkj");
        System.out.println(user.getUsername());
    }
}
